<?php
/**
 * @version     1.0.0
 * @package     com_igzclientes
 * @copyright   Copyright (C) 2012. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Created by com_combuilder - http://www.notwebdesign.com
 */

// no direct access
defined('_JEXEC') or die;

JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
?>
<style>
    .textimagen{
        width: 100%!important;
        height: 200px!important;
    }
</style>
<script type="text/javascript">
	Joomla.submitbutton = function(task)
	{
		if (task == 'caso.cancel' || document.formvalidator.isValid(document.id('caso-form'))) {
			Joomla.submitform(task, document.getElementById('caso-form'));
		}
		else {
			alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
		}
	}
</script>
<script type="text/javascript">
tinyMCE.init({
        // General
        directionality: "ltr",
        editor_selector : "textimagen",
        language : "en",
        mode : "specific_textareas",
        skin : "default",
        theme : "advanced",
        // Cleanup/Output
        inline_styles : true,
        gecko_spellcheck : true,
        entity_encoding : "raw",       
        force_br_newlines : false, force_p_newlines : true, forced_root_block : 'p',
        invalid_elements : "script,applet,iframe",
        // URL
        relative_urls : true,
        remove_script_host : false,
        document_base_url : "<?php echo JURI::base();?>../",
        
        theme_advanced_buttons1 : "",
        theme_advanced_buttons2 : "",
        theme_advanced_buttons3 : "",
        theme_advanced_buttons4 : ""
        
        
});
</script>

<form action="<?php echo JRoute::_('index.php?option=com_igzclientes&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="caso-form" class="form-validate">
	<div class="width-60 fltlft">
		<fieldset class="adminform">
			<legend><?php echo JText::_('COM_IGZCLIENTES_LEGEND_CASO'); ?></legend>
			<ul class="adminformlist">

            
			<!--
			<li><?php echo $this->form->getLabel('id'); ?>
			<?php echo $this->form->getInput('id'); ?></li>
			-->

            
			<li><?php echo $this->form->getLabel('titulo'); ?>
			<?php echo $this->form->getInput('titulo'); ?></li>

            
			<li><?php echo $this->form->getLabel('fecha'); ?>
			<?php echo $this->form->getInput('fecha'); ?></li>

            
			<li><?php echo $this->form->getLabel('descripcion'); ?>
				<div class="clr"></div>
				<?php echo $this->form->getInput('descripcion'); ?>
				<div class="clr"></div>
			</li>

            
			<li>
				<div class="clr" style="height:30px;"></div>
			<?php echo $this->form->getLabel('imagen'); ?>
						<div class="button2-left">
                            <div class="image">
                                <a rel="{handler: 'iframe', size: {x: 800, y: 500}}" onclick="IeCursorFix(); return false;" href="<?php echo JURI::base(); ?>/index.php?option=com_media&amp;view=images&amp;tmpl=component&amp;e_name=jform_imagen&amp;asset=com_igzcasos&amp;author=" title="Seleccionar Imágen" class="modal-button">
                                    Seleccionar Imágen
                                </a>
                            </div>
                        </div>
			<div class="clr"></div>
			<?php echo $this->form->getInput('imagen'); ?>
				<div class="clr" style="height:30px;"></div>
			</li>

            
			<li><?php echo $this->form->getLabel('categoria'); ?>
			<?php echo $this->form->getInput('categoria'); ?></li>

            
			<li><?php echo $this->form->getLabel('idcliente'); ?>
			<?php echo $this->form->getInput('idcliente'); ?></li>

            

            

            </ul>
		</fieldset>
	</div>


	<input type="hidden" name="task" value="" />
	<?php echo JHtml::_('form.token'); ?>
	<div class="clr"></div>
</form>